﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLToolkit.DataAccess;
using BLToolkit.Mapping;
using DAL;
using Entities.Admin;
namespace Entities.PBKT
{
	[TableName("TrongTai")]
	public class TrongTai : BaseEntity<TrongTai>
	{
		[MapField("MaTT"), PrimaryKey]
		public String MaTT { get; set; }
		public String TenTrongTai { get; set; }
		[MapField("IDDC")]
		public int MaDiaChi { get; set; }


		[Association(ThisKey = "MaDiaChi", OtherKey = "IdDiaChi")]
		public String DiaChis
		{
			get { return DiaChi.Objects.GetById(MaDiaChi).ToString(); }
			
		}

	}
}
